<SCRIPT type="text/javascript" src="/view/javascripts/form.js"></SCRIPT>
<DIV class="block">
	<H1>Процессы</H1>
	
	<TABLE>
		<TR>
			<TH>Шифр</TH>
			<TH>Название</TH>
			<TH>Цель</TH>
			<TH>Владелец</TH>
		</TR>
<?php
foreach($response->getParameter('processes') as $process) {
	$id = $process->getIdentity();
	$code = $process->getCode();
	$name = $process->getName();
	$object = $process->getObject();
	$owner = $process->getOwner();
	//$indicators = $process->getIndicators();
	
	$editId = 'editprocess-'.$id;
?>
		<TR onclick="submitForm('<?php echo $editId;?>')">
			<TD>
				<FORM action="/editing/process/edit.html" method="post"
				      id="<?php echo $editId;?>">
					<INPUT type="hidden" name="id_process" value="<?php echo $id;?>">
				</FORM>
				<?php echo $code;?>
			</TD>
			<TD><?php echo $name;?></TD>
			<TD><?php echo $object;?></TD>
			<TD><?php echo $owner->getName();?></TD>
			
		</TR>
<?php
}
?>
	</TABLE>
</DIV>

<DIV class="block">
	<FORM action="/editing/process/edit.html" method="post">
		<BUTTON type="submit">
			<IMG src="/view/img/button-new.png" alt="">
			<SPAN>новый</SPAN>
		</BUTTON>
	</FORM>
</DIV>